package com.joysuch.wwyt.dzhapi.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.joysuch.wwyt.api.mh.dto.TenantBean;
import com.joysuch.wwyt.core.entity.BaseConfig;
import com.joysuch.wwyt.dzhapi.bean.ApiBaseConfigBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author zero
 * @since 2021/11/2 14:18
 */
public interface ApiBaseConfigMapper extends BaseMapper<ApiBaseConfigBean> {
    ApiBaseConfigBean findConfig(Long tenentId, String orgCode, String code);

    List<Map<String,Object>> selectTenentIdAndOrgCodes(@Param("url") String url, @Param("token") String token);

    List<BaseConfig> findConfigByList(@Param("tenantBeans")List<TenantBean> tenantBeans, @Param("code")String monitorPointHttpServerUrl);
}
